package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Commodity;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ICommodityService {
    PageInfo query(QueryObject queryObject);

    void delete(Long id);

    void saveOrUpdate(Commodity commodity);

    List<Commodity> list();

    Commodity getById(Long id);

    Commodity selectByCommodityId(Long id); //得到商品的价格
}
